]> dgit.raspbian.org Git - gnome-shell.git/commit
workspacesView: Avoid an unnecessary animation
authorFlorian Müllner <fmuellner@gnome.org>
Sun, 29 Jul 2012 10:06:17 +0000 (12:06 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 22 Aug 2012 14:26:59 +0000 (16:26 +0200)
commite92a6b3c6cd7bec438cb7fc87426208d3dd5cb45
treeba85326798a02ded0919439a107ed5bc4877f5ed
parent66a36bf591a6140fe83b7cf2a9abd3ea8a7eb345
workspacesView: Avoid an unnecessary animation

Currently we animate scrolling to the active workspace both when
the number of workspaces changed and after changing the active
workspace. So in case we don't actually change workspace, this
results in an unnecessary animation that may even have unwanted
side effects: when done during the overview transition (e.g. in
the case of opening and activating a window on an empty workspace),
non-active workspaces become visible during the transition.
To fix, don't scroll to the active workspace when the number of
workspaces changes and rely on the 'switch-workspace' signal being
emitted as necessary.

https://bugzilla.gnome.org/show_bug.cgi?id=682002
js/ui/workspacesView.js